package cn.ulric.db;

import java.io.Serializable;
import java.util.List;

/**
 * @author Ulric
 */
public class DB {

    public static <T> T read(Class<T> beanClass, String sql, Object... params) {
        throw new UnsupportedOperationException();
    }

    public static <T> T readCache(Class<T> beanClass, String cacheRegion, Serializable cacheKey, String sql, Object... params) {
        throw new UnsupportedOperationException();
    }

    public static <T> List<T> query(Class<T> beanClass, String sql, Object... params) {
        throw new UnsupportedOperationException();
    }

    public static <T> List<T> queryCache(Class<T> beanClass, String cacheRegion, Serializable cacheKey, String sql, Object... params) {
        throw new UnsupportedOperationException();
    }

    public static <T> List<T> querySlice(Class<T> beanClass, String sql, int page, int count, Object... params) {
        throw new UnsupportedOperationException();
    }

    public static <T> List<T> querySliceCache(Class<T> beanClass, String cacheRegion, Serializable cacheKey, int cacheObjCount, String sql, int page, int count, Object... params) {
        throw new UnsupportedOperationException();
    }

    public static long stat(String sql, Object... params) {
        throw new UnsupportedOperationException();
    }

    public static long stat_cache(String cacheRegion, Serializable key, String sql, Object... params) {
        throw new UnsupportedOperationException();
    }
}
